<h1>客户管理 - <span id="secondHeading">修改客户家人信息</span></h1>
<%= javascript_include_tag "prototype" %>
<%= javascript_include_tag "util" %>
<%= javascript_include_tag "calendar" %>
<%= form_tag ({}, :id=>"input-form") %>
<TABLE border="0" id="INPUT_TABLE">
<input type="hidden" name="id" value="<%=@family.id%>"/>
<input type="hidden" name="agent_id" value="<%=@family.agent_id%>"/>
    <tr>
      <td class="b">称谓：</td>
      <td><input type="text" value="<%=@family.appellation%>" name="appellation" maxlength="20"></td>
    </tr>
    <tr>
      <td class="b">姓名：</td>
      <td><input type="text" value="<%=@family.name%>" name="name" maxlength="20"></td>
    </tr>
    <tr>
      <td class="b">性别：</td>
      <td><select name="sex">
        <option value='0'<%= ' selected' if @family.sex == 0%>>女</option>
		<option value='1'<%= ' selected' if @family.sex == 1%>>男</option>
		</select>
		</td>
    </tr>
        <tr>
        <td class="b">生日：</td>
        <td>
                <script language=javascript>
                        /*var bir_Date=new dateSelector();
                        bir_Date.inputID='birthday';
                        bir_Date.inputName='birthday';
                        bir_Date.display();*/
                        var bir_Date=new dateSelector('<%= @family.birthday %>');
                        bir_Date.inputID='birthday';
                        bir_Date.inputName='birthday';
                        bir_Date.display();
                </script>
        </td>
        </tr>
     <tr>
      <td colspan="2" align="right">
      <input type="submit" value="修改" class="sub">&nbsp;OR&nbsp;<input type="reset" value="重新填写" class="cal"></td>
    </tr>
</table>
<%= end_form_tag %>
